package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class QueryObject {
    //当前页
    private int page = 1;
    //每页显示条数
    private int rows = 10;
    //排序的列名
    private String sort;
    //排序的默认规则
    private String order;
    public int getStartIndex(){
        return (page - 1) * rows;
    }
}
